package com.fastwire.carriere.filter;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;

public class ExceptionHttpServletResponseWrapper extends
		HttpServletResponseWrapper {

	public ExceptionHttpServletResponseWrapper(HttpServletResponse response) {
		super(response);
	}

	@Override
	public void setStatus(int statusCode) {
		if (statusCode == 500) {
			super.setStatus(200);
		}
	}
}